<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
   <%@page import="it.polimi.travelDream.ejb.servlet.*" %>

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>
		  	TravelDreamLogin
		</title>
		<link rel="stylesheet" type="text/css" href="./style.css" />
  	</head>
  
  
  <body>
  	<div class="header">
  		<ul>
	  		<li>TravelDream</li>
		    <li>Add Excursion</li>
	    </ul>
  	</div>
  	
  	<div class="section">	    
	    <div class="nav">
	    	<ul>
	    		<li> Login </li>
	    		<li> <a href="Registration.jsp"> Register </a> </li>
	    	</ul>
	    </div>
	    <div class="content">
		    <form action="LoginServlet" method="POST">
		    <ul>
			      <li><strong>Username</strong><input type="text" name="username" /></li>
			      <li><strong>Password</strong><input type="password" name="password" /></li>
			         
			      <li><input type="submit" value="Login" /></li>
		      </ul>
		    </form>
		    
		    	   <% 
	    	if (request.getAttribute("message") == null) 
		    	{ 
		    		%>
						<div></div>
					<% 
				} 
	    	else 
		    	{ 
		    		%>
						<%=request.getAttribute("message")%>
					<% 
				} 
		%>
		
		</div>

    </div>
    
    <div class="footer">
    	<ul>
	    	<li>TravelDream Company srl © All rights reserved</li>
		    <li>Terms of use | Contacts | Team </li>
	    </ul>
    </div>
    
  </body>
</html>